<?php /* Smarty version 2.6.26, created on 2010-05-07 15:27:46
         compiled from admin/feedback.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'admin/feedback.tpl', 41, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="webapps/admin/stylesheets/admin.css" />
<link type="text/css" rel="stylesheet" href="webapps/styles/table_dis.css" />
<script type="text/javascript" src="webapps/scripts/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#tab tr").hover(function(){$(this).css("background","#DEEBFC");},function(){$(this).css("background","#FFF");});
});
</script>
<title><?php echo $this->_tpl_vars['title']; ?>
</title>
</head>

<body>
<table width="100%" cellpadding="1" cellspacing="1" border="0" id="tab">
  <tr>
    <th colspan="7" style="background-color:#4F9AD0;">提议信息</th>
  </tr>
  <tr>
    <td width="4%">选择</td>
    <td width="6%">提议编号</td>
    <td width="15%">提议标题</td>
    <td width="11%">用户信息</td>
    <td width="25%">提议内容</td>
    <td width="14%">提议时间</td>
    <td width="15%">操作</td>
  </tr>
  <?php if ($this->_tpl_vars['res_feedback'] == 'NULL'): ?>
  <tr>
  	<td colspan="7" style="color:red;">暂没有反馈！</td>
  </tr>
  <?php else: ?>
  <?php unset($this->_sections['tmp_res_feedback']);
$this->_sections['tmp_res_feedback']['name'] = 'tmp_res_feedback';
$this->_sections['tmp_res_feedback']['loop'] = is_array($_loop=$this->_tpl_vars['res_feedback']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['tmp_res_feedback']['show'] = true;
$this->_sections['tmp_res_feedback']['max'] = $this->_sections['tmp_res_feedback']['loop'];
$this->_sections['tmp_res_feedback']['step'] = 1;
$this->_sections['tmp_res_feedback']['start'] = $this->_sections['tmp_res_feedback']['step'] > 0 ? 0 : $this->_sections['tmp_res_feedback']['loop']-1;
if ($this->_sections['tmp_res_feedback']['show']) {
    $this->_sections['tmp_res_feedback']['total'] = $this->_sections['tmp_res_feedback']['loop'];
    if ($this->_sections['tmp_res_feedback']['total'] == 0)
        $this->_sections['tmp_res_feedback']['show'] = false;
} else
    $this->_sections['tmp_res_feedback']['total'] = 0;
if ($this->_sections['tmp_res_feedback']['show']):

            for ($this->_sections['tmp_res_feedback']['index'] = $this->_sections['tmp_res_feedback']['start'], $this->_sections['tmp_res_feedback']['iteration'] = 1;
                 $this->_sections['tmp_res_feedback']['iteration'] <= $this->_sections['tmp_res_feedback']['total'];
                 $this->_sections['tmp_res_feedback']['index'] += $this->_sections['tmp_res_feedback']['step'], $this->_sections['tmp_res_feedback']['iteration']++):
$this->_sections['tmp_res_feedback']['rownum'] = $this->_sections['tmp_res_feedback']['iteration'];
$this->_sections['tmp_res_feedback']['index_prev'] = $this->_sections['tmp_res_feedback']['index'] - $this->_sections['tmp_res_feedback']['step'];
$this->_sections['tmp_res_feedback']['index_next'] = $this->_sections['tmp_res_feedback']['index'] + $this->_sections['tmp_res_feedback']['step'];
$this->_sections['tmp_res_feedback']['first']      = ($this->_sections['tmp_res_feedback']['iteration'] == 1);
$this->_sections['tmp_res_feedback']['last']       = ($this->_sections['tmp_res_feedback']['iteration'] == $this->_sections['tmp_res_feedback']['total']);
?>
  <tr>
    <td>
      <input type="checkbox" name="checkbox" id="checkbox" />
    </td>
    <td><?php echo $this->_tpl_vars['res_feedback'][$this->_sections['tmp_res_feedback']['index']]['id']; ?>
</td>
    <td><?php echo ((is_array($_tmp=$this->_tpl_vars['res_feedback'][$this->_sections['tmp_res_feedback']['index']]['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 80) : smarty_modifier_truncate($_tmp, 80)); ?>
</td>
    <td><?php echo $this->_tpl_vars['res_feedback'][$this->_sections['tmp_res_feedback']['index']]['userinfo']; ?>
</td>
    <td><?php echo ((is_array($_tmp=$this->_tpl_vars['res_feedback'][$this->_sections['tmp_res_feedback']['index']]['content'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 120) : smarty_modifier_truncate($_tmp, 120)); ?>
</td>
    <td><?php echo $this->_tpl_vars['res_feedback'][$this->_sections['tmp_res_feedback']['index']]['postdate']; ?>
</td>
    <td><a href="index.php?controller=admin&action=showFeedback&id=<?php echo $this->_tpl_vars['res_feedback'][$this->_sections['tmp_res_feedback']['index']]['id']; ?>
">阅读</a> <a href="index.php?controller=admin&action=delFeedback&id=<?php echo $this->_tpl_vars['res_feedback'][$this->_sections['tmp_res_feedback']['index']]['id']; ?>
" onclick="javascript:return confirm('你确定要删除吗？');">删除</a></td>
  </tr>
  <?php endfor; endif; ?>
  <!--
  <tr>
    <td colspan="7"><a href="#">全选</a> <a href="#">反选</a> <a href="#">选中数据导出为Excel表格</a> <span id="page" style="padding-left:49%;"><a href="#">首页</a> | <a href="#">上一页</a> | <a href="#">下一页</a> | <a href="#">最后一页</a></span></td>
  </tr>
  -->
  <?php endif; ?>
</table>
</body>
</html>